package com.uubx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * (Department)实体类
 *
 * @author makejava
 * @since 2020-12-29 17:38:55
 */
@ApiModel(description = "Department数据")
public class Department implements Serializable {
    private static final long serialVersionUID = -63302033122379109L;
    @Id
    private Integer id;
    @ApiModelProperty("部门名称")
    private String name;
    @ApiModelProperty("创建时间")
    private Date createTime;
    /**
     * 0为未启用，1为启用
     */        @ApiModelProperty("状态：0未启用; 1已启用")
    private Integer status;

    public Department() {
    }

    public Department(Integer id, String name, Date createTime, Integer status) {
        this.id = id;
        this.name = name;
        this.createTime = createTime;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                '}';
    }
}
